bpf: add bpf_clone_redirect to bpf_helper_changes_pkt_data
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 24 May 2017 23:05:07 +0000 (01:05 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:52:22 +0000 (02:52 +0000)
commit2a7ad463a94c9f5506f796467cb4c28d0b5102a2
tree84cc3236df59961659d561a91b113a1e02f135bb
parent56c8b29b1ce7745b9a97e5c41a36baab83e2db05
bpf: add bpf_clone_redirect to bpf_helper_changes_pkt_data

[ Upstream commit 41703a731066fde79c3e5ccf3391cf77a98aeda5 ]

The bpf_clone_redirect() still needs to be listed in
bpf_helper_changes_pkt_data() since we call into
bpf_try_make_head_writable() from there, thus we need
to invalidate prior pkt regs as well.

Fixes: 36bbef52c7eb ("bpf: direct packet write and access for helpers for clsact progs")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/filter.c